﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LSP.BAD
{
    public class MinValueValidator<T>
        where T:IComparable
    {

        public T MinValue { get; protected set; }
        public MinValueValidator(T minValue)
        {
            MinValue = minValue;
        }


        public virtual bool IsValid(T value)
        {
            return value.CompareTo(MinValue)>0;
        }

    }
}
